06. Challenge 2 Solution

Here's my solution:

#include <iostream>
#include <string>
#include <PrintString.h>

using namespace std;

void PrintString(string str, int n)
{
    for (int i = 0; i < n; i++) {
        cout << str << endl;
    }
}